﻿@model ElCharro01.Models.LogOnModel
@{
    ViewBag.Title = "Log On";
}
<div class="sfondo">
    <div class="paddalo">
        <h2>
            Log In</h2>
        <p>
            Perfavore Effettua Il LogIn.Oppure @Html.ActionLink("Registrati", "Register") se
            non hai un account.
        </p>
        <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
        @Html.ValidationSummary(true, "Il LogIn è Fallito. Controlla I Dati Che Hai Inserito E Riprova.")
        @using (Html.BeginForm())
        {
            <div>
                <fieldset>
                    <legend>Informazioni Account</legend>
                    <div class="editor-label">
                        @Html.LabelFor(m => m.UserName)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.UserName)
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(m => m.Password)
                    </div>
                    <div class="editor-field">
                        @Html.PasswordFor(m => m.Password)
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    <p>
                        <input type="submit" value="Log In" />
                    </p>
                </fieldset>
            </div>
            <div>
                Se hai dimenticato la password clicca @Html.ActionLink("Quì", "RecoverAccount", "Account", new { })
            </div>
        }
    </div>
</div>
